package com.github.wxiaoqi.security.biz.modules.menuShow.entity;

import java.io.Serializable;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * 小程序首页菜单列表
 * 
 * @author chj
 * @email ${email}
 * @date 2018-09-03 14:20:49
 */
@Table(name = "cms_main_menu")
public class CmsMainMenu implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //编号
    @Id
    private Long id;
	
	    //平台编号
    @Column(name = "platformId")
    private String platformId;
	
	    //代码
    @Column(name = "code")
    private String code;
	
	    //名称
    @Column(name = "name")
    private String name;
	
	    //图标
    @Column(name = "icon")
    private String icon;
	
	    //是否显示 0显示 1不显示
    @Column(name = "isShow")
    private String isShow;
	
	    //等级 1 2
    @Column(name = "level")
    private String level;
	
	    //
    @Column(name = "parent_code")
    private String parentCode;
    
    
    @Transient
    private Map<String, Object> children;
	

	/**
	 * 设置：编号
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：编号
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：平台编号
	 */
	public void setPlatformId(String platformid) {
		this.platformId = platformid;
	}
	/**
	 * 获取：平台编号
	 */
	public String getPlatformId() {
		return platformId;
	}
	/**
	 * 设置：代码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：代码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：名称
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名称
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：图标
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}
	/**
	 * 获取：图标
	 */
	public String getIcon() {
		return icon;
	}
	/**
	 * 设置：是否显示 0显示 1不显示
	 */
	public void setIsShow(String isshow) {
		this.isShow = isshow;
	}
	/**
	 * 获取：是否显示 0显示 1不显示
	 */
	public String getIsShow() {
		return isShow;
	}
	/**
	 * 设置：等级 1 2
	 */
	public void setLevel(String level) {
		this.level = level;
	}
	/**
	 * 获取：等级 1 2
	 */
	public String getLevel() {
		return level;
	}
	/**
	 * 设置：
	 */
	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}
	/**
	 * 获取：
	 */
	public String getParentCode() {
		return parentCode;
	}
	public Map<String, Object> getChildren() {
		return children;
	}
	public void setChildren(Map<String, Object> children) {
		this.children = children;
	}
	@Override
	public String toString() {
		return "CmsMainMenu [id=" + id + ", platformId=" + platformId + ", code=" + code + ", name=" + name + ", icon="
				+ icon + ", isShow=" + isShow + ", level=" + level + ", parentCode=" + parentCode + ", children="
				+ children + "]";
	}
	
	
}
